'use strict';
exports = module.exports = function ($scope, $rootScope, $timeout, $alert, $state, $uibModal, $API, yxtable14, $compile, $rule) {
    $scope.frm = {
        f10: ["许丽", "孟洋", "侯秀英", "罗娜", "唐超", "傅娜", "石秀英", "陈刚", "常艳", "曾秀英"], // 增删表格
    }
    $scope.frm2 = {
        f10add: function(){
            if(!$scope.frm.f09){
                return false
            }
            // 冗余写法目的是解决数组必填验证逻辑
            // 不可使用$scope.frm.f10.push
            var xx = angular.copy($scope.frm.f10);
            xx.push($scope.frm.f09);
            $scope.frm.f09 = ''
            $scope.frm.f10 = xx
        },
        f10delete: function(index){
            // 冗余写法目的是解决数组必填验证逻辑
            // 不可使用$scope.frm.f10.splice
            var xx = angular.copy($scope.frm.f10);
            xx.splice(index, 1);
            $scope.frm.f10 = xx
        },
    }
}